﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cosmetic.DataEntity;

namespace Cosmetic.Logic
{
    public class SaleRatioManager:LogicBase
    {
        public SaleRatio GetSaleRatio()
        {
            SaleRatio result = (from sale in m_CosmeticDC.SaleRatios
                                select sale).First();
            return result;
        }

        public void SetSaleRatio(decimal ratio)
        {
            m_CosmeticDC.ExecuteCommand("update SaleRatio set ratio = "+ratio.ToString());
        }
    }
}
